<%@ page import="vendas.Cliente" %>



<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'cpf', 'error')} required">
	<label for="cpf">
		<g:message code="cliente.cpf.label" default="Cpf" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="cpf" required="" value="${clienteInstance?.cpf}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'nome', 'error')} required">
	<label for="nome">
		<g:message code="cliente.nome.label" default="Nome" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nome" required="" value="${clienteInstance?.nome}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'rg', 'error')} ">
	<label for="rg">
		<g:message code="cliente.rg.label" default="Rg" />
		
	</label>
	<g:textField name="rg" value="${clienteInstance?.rg}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'divida', 'error')} required">
	<label for="divida">
		<g:message code="cliente.divida.label" default="Divida" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="divida" value="${fieldValue(bean: clienteInstance, field: 'divida')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'telefone', 'error')} ">
	<label for="telefone">
		<g:message code="cliente.telefone.label" default="Telefone" />
		
	</label>
	<g:textField name="telefone" value="${clienteInstance?.telefone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="cliente.email.label" default="Email" />
		
	</label>
	<g:textField name="email" value="${clienteInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: clienteInstance, field: 'endereco', 'error')} required">
	<label for="endereco">
		<g:message code="cliente.endereco.label" default="Endereco" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="endereco" name="endereco.id" from="${vendas.Endereco.list()}" optionKey="id" required="" value="${clienteInstance?.endereco?.id}" class="many-to-one"/>
</div>

